package com.gxkj.projects.myshopx.entitys;

import com.gxkj.common.validate.Update;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Entity
@Table(name = "goods_member_price")
public class GoodsMemberPrice  implements Serializable{

    private static final long serialVersionUID = -1082025753955574487L;
    @Id
    @GenericGenerator(name="systemUUID",strategy="uuid")
    @GeneratedValue(generator="systemUUID")
    @Column(name = "id")
    @NotEmpty(message = "{id.null}", groups = {Update.class})
    private String id;


    @Column(name = "user_rank")
    @NotEmpty(message = "{goods_member_price.user_rank.null}" )
    private String user_rank;

    @Column(name = "goods_id")
    @NotEmpty(message = "{goods_member_price.goods_id.null}" )
    private String goodsId;

    @Column(name = "user_price")
    private String userPrice;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUser_rank() {
        return user_rank;
    }

    public void setUser_rank(String user_rank) {
        this.user_rank = user_rank;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getUserPrice() {
        return userPrice;
    }

    public void setUserPrice(String userPrice) {
        this.userPrice = userPrice;
    }
}
